package com.beverages.holder.client;

import com.beverages.holder.common.Result;
import com.beverages.holder.config.FeignOkHttpConfig;
import com.beverages.holder.entity.dto.HoldersDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "merchant-messages-service", url = "${merchant.messages.service.url}", configuration = FeignOkHttpConfig.class)
public interface MerchantMessagesClient {
    @PostMapping("/merchant/messages/facility/send/holder")
    Result sendPreparedOrdersToFacility(@RequestBody List<HoldersDTO> holderDTOs);
}
